#include "Graphics/IDeviceIndexBuffer.h"
#include "Graphics/IDeviceBuffer.h"


namespace tyro
{
	namespace Graphics
	{


		IDeviceIndexBuffer::IDeviceIndexBuffer( IDeviceBufferManagerBase* mgr, VertexIndexType indexType, size_t numberIndecies )
			:	IDeviceBuffer()
			,	mgr(mgr)
			,	indexType(indexType)
			,	numberIndecies(numberIndecies)
		{
			switch(indexType)
			{
			case VIT_16BIT:
				indexSize = sizeof(USHORT_16);
				break;
			case  VIT_32BIT:
				indexSize = sizeof(UINT_32);
				break;
			}

			sizeInBytes = indexSize * numberIndecies;




		}

		


		IDeviceIndexBufferSharedPtr::IDeviceIndexBufferSharedPtr( IDeviceIndexBuffer* buf )
			:	SharedPtr<IDeviceIndexBuffer>(buf)
		{
	
		}

		

	}
}